package com.hyacinth.dubbo.io.netty.protocol.request;

import com.hyacinth.dubbo.io.netty.protocol.Packet;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.hyacinth.dubbo.io.netty.protocol.command.Command.LOGIN_REQUEST;

/**
 * 登陆请求包
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class LoginRequestPacket extends Packet {

    private String  userId;

    private String username;

    private String password;

    @Override
    public Byte getCommand() {
        return LOGIN_REQUEST;
    }
}
